<?php

// Created by Khanh Nam

$this->widget('zii.widgets.CMenu',array(
    'items'=>array(
        array('label'=>'Dispatch Info','url'=>array('Dispatchdetails/update','dispatch'=>$model->dispatch),'active'=>Yii::app()->controller->id=='dispatchdetails'),
        array('label'=>'Technicians','url'=>array('/Dispatchtech','dispatch'=>$model->dispatch),'active'=>Yii::app()->controller->id=='dispatchtech'),
        array('label'=>'Equipments','url'=>array('/Dispatchequipment','dispatch'=>$model->dispatch),'active'=>Yii::app()->controller->id=='dispatchequipment'),
        array('label'=>'Documents','url'=>array('/Documents','dispatch'=>$model->dispatch,'type'=>  DOCTYPE_DISPATCH),'active'=>Yii::app()->controller->id=='documents'),
        array('label'=>'Parts','url'=>array('/Dispatchparts','dispatch'=>$model->dispatch),'active'=>Yii::app()->controller->id=='dispatchparts'),
        
        //array('label'=>'Tasks','url'=>array('/Dispatchtask','dispatch'=>$model->dispatch),'active'=>Yii::app()->controller->id=='dispatchtask')
    ),
    'id'=>'tab-menu',
    'htmlOptions'=>array(
        'class'=>'tabs tabs-with-summary',
    ),
   
));
?>
